Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.
In a small bowl, whisk together the all-purpose flour, baking soda, and salt. Set aside.
In a large mixing bowl, using an electric mixer, beat the softened butter and cream cheese together until smooth and creamy.
Add the brown sugar and granulated sugar to the mixture, and beat until well combined.
Mix in the vanilla extract and egg until fully incorporated.
Gradually add the flour mixture to the wet ingredients and mix until just combined, being careful not to overmix.
Fold in the chocolate chips and chopped walnuts (if using) with a spatula until evenly distributed.
Using a cookie scoop or tablespoon, drop heaping tablespoons of dough onto the prepared baking sheet, leaving space between each cookie.
Bake in the preheated oven for 10-12 minutes or until the edges are lightly golden but the centers remain soft.
Remove from the oven and let the cookies cool on the baking sheet for about 5 minutes before transferring them to a wire rack to cool completely.
Notes
Serve these cookies on a decorative platter, with a sprinkle of sea salt on top for a stylish finish. Pair them with a glass of milk for a classic treat!