Line two sheet pans with parchment. Gently crush the cornflakes and set aside.
Warm sugar, corn syrup, and butter in a medium saucepan over medium heat, stirring until the sugar dissolves.
Bring to a gentle bubble and simmer for about 1 minute without vigorous boiling.
Remove from heat. Stir in peanut butter, vanilla, and salt until smooth and glossy.
Fold in the crushed cornflakes until every piece is evenly coated.
Scoop heaping tablespoons onto the lined pans and gently press to compact.
Melt chocolate chips in a microwave-safe bowl in short bursts, stirring smooth, then drizzle over cookies if using.
Let cookies stand at room temperature until set, about 20–30 minutes.