Preheat oven to 350°F (175°C). Grease a 9x13 inch metal baking pan and line with parchment, leaving a 2-inch overhang for easy lifting.
Beat softened butter, brown sugar, and granulated sugar together with a mixer for 2–3 minutes until light and fluffy. Add eggs one at a time, mixing well, then stir in vanilla.
In a separate bowl, whisk flour, cornstarch, baking soda, and salt. Gradually mix into wet ingredients on low speed until just combined. Fold in 1 cup of M&M’s and all the chocolate chips. If the dough is sticky, add flour 1 tablespoon at a time.
Press dough evenly into the prepared pan with greased hands or the back of a measuring cup. Sprinkle remaining M&M’s on top and gently press them in.
Bake 22–26 minutes, until edges are set and the top is golden while the center looks slightly soft. Cool completely in the pan on a wire rack, then lift out using parchment and cut into squares.