In a large bowl, cream together the softened butter, brown sugar, and granulated sugar until light and fluffy.Beat in the egg and vanilla extract until fully combined.In a separate bowl, whisk together the flour, baking soda, and salt.Gradually mix the dry ingredients into the wet ingredients until a soft dough forms.Fold in the chocolate chips and optional nuts.Line the air fryer basket with air fryer-safe parchment paper.Scoop tablespoon-sized portions of dough onto the parchment, leaving space between each cookie.Air fry at 320°F (160°C) for 7–8 minutes, or until the edges are lightly golden.Let the cookies cool in the basket for 5 minutes before transferring to a wire rack.