Mash the bananas: Peel and mash the bananas in a large bowl until mostly smooth with a few small lumps remaining. The riper the bananas, the sweeter and smoother the mash will be.
Mix wet ingredients: Stir the peanut butter, egg, and vanilla extract into the mashed banana until the mixture looks glossy and well blended.
Add dry ingredients: Sprinkle in the rolled oats, cinnamon, baking soda, and salt, folding gently just until no dry streaks remain.
Fold in mix-ins: Fold in the mini chocolate chips and chopped walnuts if using, distributing them evenly through the dough.
Let dough rest: Let the dough sit for 5 minutes so the oats soften slightly and the mixture thickens a bit, making it easier to scoop.
Preheat the oven: While the dough rests, preheat the oven to 350°F and line a baking sheet with parchment paper.
Scoop the dough: Drop rounded tablespoons of dough onto the prepared baking sheet, spacing them about 2 inches apart.
Flatten each cookie: Press the back of a spoon gently on top of each mound to flatten it slightly, since these cookies hold their shape and don't spread much in the oven.
Bake until golden: Bake for 11 to 13 minutes, until the edges turn light golden and the tops look set but still soft in the center.
Cool before moving: Let the cookies cool on the baking sheet for 5 minutes, then transfer them to a wire rack to finish cooling completely.