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 - Combine butter and chopped dark chocolate in a microwave-safe bowl. Heat in 30-second intervals, stirring between each, until completely smooth. Let cool for 5 minutes.
03 - In a large mixing bowl, whisk granulated sugar, brown sugar, and eggs vigorously until the mixture becomes thick, pale, and glossy, about 2 minutes.
04 - Add vanilla extract and sourdough discard to the egg mixture. Stir until fully blended and no streaks of discard remain.
05 - Pour the melted chocolate mixture into the wet batter and fold gently until uniform in color.
06 - Sift flour, cocoa powder, and salt together into a separate bowl. Add the dry mixture to the batter and fold with a spatula just until no dry pockets remain. Do not overmix.
07 - Spread the batter evenly into the prepared pan. Scatter mini chocolate chips and cosmic sprinkles uniformly across the surface.
08 - Bake on the center rack for 28 to 32 minutes, until the center is just set and a toothpick inserted comes out with moist crumbs clinging to it.
09 - Let brownies cool in the pan for at least 20 minutes. Use the parchment overhang to lift the slab out and cut into 16 even squares.