Preheat your oven to 350°F (175°C). Grease the 9x9 inch baking pan or line it with parchment paper for easy removal.
In a mixing bowl, mash the ripe bananas with a fork until smooth.
Add the granulated sugar, brown sugar, and melted butter to the mashed bananas. Mix well until combined.
Beat in the eggs and vanilla extract until everything is well incorporated.
In a separate bowl, whisk together the all-purpose flour, cocoa powder, baking soda, and salt.
Gradually fold the dry ingredients into the banana mixture using a rubber spatula until just combined.
If using, gently fold in the chocolate chips.
Pour the batter into the prepared baking pan and spread it evenly.
Bake in the preheated oven for 25 minutes or until a toothpick inserted into the center comes out mostly clean (a few moist crumbs are okay).
Let the brownies cool in the pan for about 10 minutes before transferring them to a wire rack to cool completely.