Prep your pans. Line two baking sheets with parchment paper.
Set your oven to 350°F (175°C) so it’s ready when you are.
Cream the butter and sugars. In a large bowl, beat the softened butter, brown sugar, and granulated sugar until creamy and slightly fluffy, about 2 minutes. This helps create a tender cookie with good structure.
Add egg and vanilla. Mix in the egg and vanilla until smooth. Scrape down the bowl so everything is evenly combined.
Whisk the dry ingredients. In a separate bowl, whisk together flour, cocoa powder, cornstarch, baking soda, salt, and cinnamon if using.
Breaking up cocoa clumps now makes mixing easier.
Combine wet and dry. Add the dry ingredients to the wet and mix on low until just combined. Don’t overmix. Stir in the chocolate chips or chunks.
Chill briefly (optional but helpful). For thicker cookies, chill the dough for 20–30 minutes.
It makes shaping easier and keeps the centers fudgy.
Scoop and bake partway. Scoop dough into 2-tablespoon mounds (about 1.5 inches wide) and space them 2 inches apart. Bake for 7–8 minutes until the edges are set but centers are still soft.
Add the marshmallows. Remove the tray and gently press a halved large marshmallow (cut side down) into the center of each cookie. If using mini marshmallows, press 3–4 onto each cookie.
Finish baking. Return to the oven for 3–4 more minutes, until the marshmallows are puffed and lightly golden and the cookies are set around the edges.
If you like extra toasty tops, switch to broil for 15–30 seconds—watch closely.
Top and cool. Sprinkle with a pinch of flaky sea salt, if you like. Let cookies cool on the sheet for 5 minutes, then move to a rack. They’ll firm up as they cool but stay soft inside.