Preheat the oven to 350°F (175°C). Line an 8×8-inch baking pan with parchment paper, leaving some overhang for easy lifting.
In a large microwave-safe bowl, melt the butter and let it cool slightly.
Whisk in granulated and brown sugar until combined and glossy.
Add eggs and vanilla, whisking until smooth and thickened.
Sift in cocoa powder, flour, and salt directly into the bowl.
Fold gently with a spatula until just combined. Do not overmix.
Stir in chocolate chunks or nuts, if using.
Pour the batter into the prepared pan and smooth the top.
Bake for 25–30 minutes, or until a toothpick comes out with a few moist crumbs (not wet batter).
Cool completely in the pan before slicing into squares for clean edges.