Prepare two baking sheets with wax or parchment paper to place the cookies on when they are cooling.
In a medium saucepan, combine syrup, peanut butter, cocoa powder and the pinch of salt. Heat over a medium heat until the sauce JUST reaches a full boil.
Remove the kettle from the heat and stir in the vanilla, corn flakes, and nuts (if using) until well coated, adding more flakes if needed.
Using a cookie or ice cream scoop, scoop the cookies onto prepared baking sheets.
Allow to cool until set, about 30 minutes. Once set, store in an airtight container.
Keyword chocolate and peanut butter, chocolate cookies, corn flake cookies, no bake cookies, no bake desserts, peanut butter, quick cookies, quick treats