01 - Preheat oven to 350°F. Grease a 9x5-inch loaf pan and line it with parchment paper for easy removal.
02 - In a medium bowl, whisk together flour, cocoa powder, baking soda, and salt until evenly blended.
03 - In a large bowl, whisk mashed bananas, melted butter, sugar, eggs, and vanilla extract until smooth and uniform.
04 - Fold the dry mixture gently into the wet ingredients just until combined, avoiding overmixing.
05 - Fold in chocolate chips and nuts if using, ensuring even distribution.
06 - Pour the batter into the prepared loaf pan, smoothing the top with a spatula.
07 - Bake for 50 to 60 minutes, until a toothpick inserted in the center comes out with a few moist crumbs.
08 - Allow bread to cool in the pan for 10 minutes, then transfer to a wire rack to cool completely before slicing.