01 - Preheat the 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 the flour, cocoa powder, baking soda, and salt.
03 - In a large bowl, combine the mashed bananas, melted butter, sugar, eggs, and vanilla extract. Whisk until smooth and well blended.
04 - Gently fold the dry ingredients into the wet mixture until just combined, avoiding overmixing to maintain tenderness.
05 - Fold in the chocolate chips and chopped nuts if using.
06 - Pour the batter into the prepared loaf pan and smooth the top evenly.
07 - Bake for 50 to 60 minutes, or until a toothpick inserted into the center comes out with a few moist crumbs.
08 - Allow the loaf to cool in the pan for 10 minutes before transferring to a wire rack to cool completely prior to slicing.