Melt the butter in a saucepan or microwave. Let cool 10 mins (don’t skip!).
Mix wet ingredients: In a big bowl, stir melted butter, brown sugar, and white sugar until smooth. Add egg, yolk, and vanilla. Mix well.
Add dry stuff: Dump in flour, cornstarch, baking soda, baking powder, and salt. Stir until just combined (overmixing = sad cookies).
Fold in chocolate (save a handful for pressing on top later).
Chill dough 30 mins (unless you’re a risk-taker).
Preheat oven to 375°F. Line baking sheets with parchment.
Scoop dough into 3-tbsp balls (bigger = better). Space 3 inches apart.
Bake 10–12 mins until edges are golden but centers look doughy.
Sprinkle with flaky salt right out of the oven. Let cool 5 mins (or not).