Beat the softened butter with both sugars until creamy and lighter in color.
Add the egg and vanilla and mix until smooth.
Whisk the flour, cornstarch, baking soda, and salt in a separate bowl.
Add dry ingredients to the butter mixture and mix just until the flour disappears. Fold in chocolate chips and optional toasted pecans.
Cover and chill the dough for 1 hour.
Heat oven to 325°F and line baking sheets with parchment.
Scoop dough into 2-tablespoon portions, spacing them about 3 inches apart.
Bake 15 to 18 minutes until edges are golden and centers are set. Cool briefly on the pan before transferring to a rack.