01 - Preheat oven to 350°F. Line an 8×8-inch baking pan with parchment paper, leaving overhang on two sides for easy removal.
02 - In a heatproof bowl set over a saucepan of simmering water, melt the butter and chopped chocolate together, stirring gently until completely smooth. Remove from heat and let cool for about 5 minutes.
03 - Add the granulated sugar and brown sugar to the melted chocolate mixture. Whisk until well blended and the mixture looks glossy.
04 - Add eggs one at a time, whisking thoroughly after each addition until fully incorporated. Stir in the vanilla extract.
05 - Sift the flour, cocoa powder, and salt together directly over the batter. Gently fold the dry ingredients into the wet mixture using a spatula until just combined. Be careful not to overmix.
06 - If using, fold in the chopped walnuts or pecans and dark chocolate chips until evenly distributed throughout the batter.
07 - Pour the batter into the prepared baking pan and spread it into an even layer using a spatula. Smooth the top.
08 - Bake for 22–25 minutes, or until the top is set and slightly crackly while the center still has a gentle jiggle. Avoid overbaking for the best fudgy texture.
09 - Allow the brownies to cool completely in the pan on a wire rack. Once fully cooled, lift them out using the parchment overhang and slice into 12 squares.