Preheat the Oven: Set your oven to 350°F (175°C) to ensure it's hot and ready when your pie is prepared.
Prepare the Pie Crust: Place your pie crust in a 9-inch pie dish, crimping the edges if desired. Set aside.
Mix the Wet Ingredients: In a large bowl, melt the butter and let it cool slightly. Add the granulated sugar and brown sugar, whisking until well combined. Beat in the eggs one at a time, then stir in the vanilla extract.
Add the Dry Ingredients: Gradually add the flour and salt, mixing until just combined. Be careful not to overmix, as this can make the pie dense.
Fold in the Chocolate Chips: Gently fold in the chocolate chips (and nuts, if using) until evenly distributed throughout the batter.
Assemble the Pie: Pour the cookie dough mixture into the prepared pie crust, spreading it evenly with a spatula.
Bake: Place the pie in the preheated oven and bake for 50-60 minutes, or until the top is golden brown and a toothpick inserted into the center comes out with a few moist crumbs.
Cool: Allow the pie to cool on a wire rack for at least 30 minutes before slicing. This helps the filling set properly.
Serve: Enjoy warm with a scoop of vanilla ice cream or a dollop of whipped cream for an extra indulgent treat.