01 - Preheat oven to 350°F (175°C). Line a baking sheet with parchment paper.
02 - In a large bowl, beat the softened butter, brown sugar, and granulated sugar together until light and creamy.
03 - Mix in the mashed bananas, egg, and vanilla extract until well combined.
04 - In a separate bowl, whisk together the rolled oats, all-purpose flour, baking soda, ground cinnamon, and salt.
05 - Gradually add the dry ingredient mixture to the wet ingredients, stirring until just combined. Do not overmix.
06 - Gently fold in the chocolate chips or chopped walnuts if using.
07 - Drop tablespoon-sized portions of dough onto the prepared baking sheet, spacing them about 2 inches apart.
08 - Bake for 10 to 12 minutes, or until the edges turn golden while the centers remain soft.
09 - Allow the cookies to rest on the baking sheet for 5 minutes before transferring them to a wire cooling rack to cool completely.