Line an 8×8-inch metal or glass baking pan with parchment paper or aluminum foil, leaving an overhang on two sides for easy removal. If using foil, lightly grease with cooking spray. Preheat the oven to 350°F for a metal pan or 325°F for a glass pan.
In a medium bowl, whisk together the flour, cocoa powder, baking soda, and salt.
In a large bowl, whisk together the melted butter, brown sugar, and granulated sugar. Whisk in the egg, egg yolk, and vanilla until smooth.
Add the dry ingredients to the wet ingredients and stir just until combined. Fold in the chocolate chips. The dough will be thick.
Press the dough evenly into the prepared pan. Bake for 20–25 minutes, until the edges are set and a toothpick inserted into the center comes out with moist crumbs rather than wet dough. Avoid testing directly through a chocolate chip.
Sprinkle the mini marshmallows evenly over the top and gently press them into the surface. Return to the oven for 3–4 minutes, until the marshmallows are puffed and softened. Optional: For lightly toasted marshmallows, briefly broil until golden brown, for about 30-60 seconds, watching closely to prevent burning.
Let cool completely in the pan. Drizzle with the melted chocolate, if using, and allow it to set before slicing.
Lift the bars out using the parchment or foil overhang and cut into 16 squares. Lightly grease the knife to help prevent the marshmallow topping from sticking.