Preheat your oven to 350°F (175°C) and prepare a 10-inch cast iron skillet by greasing it lightly with butter or non-stick spray.
In a large bowl, cream together the softened butter, brown sugar, and granulated sugar until the mixture is light and fluffy.
Beat in the eggs one at a time, ensuring that they are fully incorporated before adding the next. Mix in the vanilla extract.
In another bowl, combine the flour, baking soda, and salt. Gradually add this dry mixture to the wet ingredients, stirring until just combined. Do not overmix.
Fold in the chocolate chips and chopped nuts (if using) until evenly distributed throughout the dough.
Spread the cookie dough evenly in the prepared skillet. Use a spatula to smooth the top.
Bake in the preheated oven for 20-25 minutes, or until the edges are golden brown and the center is set but still slightly gooey.
Remove from the oven and let it cool for about 10 minutes before slicing into wedges.
Notes
Serve warm straight from the skillet topped with a scoop of vanilla ice cream and a drizzle of chocolate syrup for an indulgent dessert experience!