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 burst, until completely smooth. Set aside to cool slightly.
03 - In a large mixing bowl, whisk granulated sugar, light brown sugar, and eggs vigorously until the mixture turns thick, pale, and glossy, approximately 2 minutes.
04 - Add vanilla extract and sourdough discard to the egg mixture. Stir thoroughly until fully blended.
05 - Pour the melted chocolate mixture into the batter and stir until uniformly combined.
06 - Sift flour, cocoa powder, and salt together in a separate bowl. Gently fold the dry mixture into the wet batter just until incorporated. Avoid overmixing to maintain a tender crumb.
07 - Spread the batter evenly into the prepared baking pan. Scatter mini chocolate chips and cosmic sprinkles uniformly across the surface.
08 - Bake for 28 to 32 minutes, until the center is just set and a toothpick inserted comes out with moist crumbs clinging to it.
09 - Allow brownies to cool in the pan for at least 20 minutes before lifting out with the parchment overhang and cutting into 16 even squares.