01 - Preheat oven to 350°F. Line a 9-inch square baking pan with parchment paper, leaving overhang on two sides for easy removal.
02 - In a microwave-safe bowl, melt the butter and chopped dark chocolate together in 30-second intervals, stirring between each burst until completely smooth. Set aside to cool slightly for about 5 minutes.
03 - In a large mixing bowl, whisk together the granulated sugar, light brown sugar, and eggs vigorously for about 2 minutes until the mixture becomes thick, pale, and glossy.
04 - Add the vanilla extract and sourdough discard to the egg-sugar mixture. Stir thoroughly until fully combined and no streaks of discard remain.
05 - Pour the melted chocolate mixture into the wet batter and fold gently until evenly incorporated throughout.
06 - In a separate bowl, sift together the all-purpose flour, cocoa powder, and salt. Gradually fold the dry ingredients into the wet batter using a spatula, mixing just until no flour pockets remain. Be careful not to overmix.
07 - Pour the batter into the prepared pan and spread it into an even layer. Scatter the mini chocolate chips and cosmic sprinkles uniformly across the surface.
08 - Bake for 28 to 32 minutes, or until the center is just set and a toothpick inserted into the middle comes out with moist crumbs clinging to it. Avoid overbaking for the best fudgy texture.
09 - Let the brownies cool in the pan for at least 20 minutes. Use the parchment overhang to lift them out, then slice into 16 even squares.