Brown the butter: Add the butter to a saucepan over low to medium heat and cook, stirring constantly, until it foams and turns golden brown with a nutty smell. Pour it into a large bowl, scraping in the brown bits, and let it cool for about 10 minutes.
Mix the sugars: Add the brown sugar and granulated sugar to the brown butter and mix for 2 minutes.
Add the eggs: Mix in the egg, egg yolks, and vanilla until combined.
Add the dry ingredients: Fold in the flour, cornstarch (if using), baking powder, and salt just until combined.
Add the mix-ins: Fold in the Oreos, M&Ms, chocolate chips, and sprinkles (if using).
Chill: Cover and refrigerate the dough for 30 minutes.
Preheat: While the dough chills, preheat the oven to 350°F and line a baking sheet with parchment paper.
Scoop: Scoop the dough into 24 balls and place them on the baking sheet, spaced about 2 inches apart. Press a few extra M&Ms and chocolate chips on top if you’d like.
Bake: Bake for 9 to 11 minutes, until the edges are set and the centers still look soft.
Cool: Let the cookies cool on the baking sheet for 5 minutes, then move them to a wire rack. Enjoy!