Prep the pan: Heat oven to 350°F (175°C). Line an 8-inch square pan with parchment, leaving overhang for easy lifting.
Lightly grease.
Mix the wet ingredients: In a medium bowl, whisk melted butter and brown sugar until glossy. Add egg and vanilla. Whisk until the mixture looks thick and cohesive.
Add the dry ingredients: Sprinkle flour, baking powder, and salt over the bowl.
Fold gently with a spatula until just combined. Do not overmix.
Stir in chocolate: Fold in dark chocolate chips or chunks. The batter will be thick.
Spread the batter: Scrape into the prepared pan and smooth the top.
Swirl the peanut butter: Warm the peanut butter for 10–15 seconds in the microwave until loosened.
Dollop over the batter in 6–8 spoonfuls. Drag a knife or skewer through in gentle figure-eights to create swirls. Don’t overdo it.
Bake: Bake 18–24 minutes, until the edges are set and golden and the center looks just set with a slight jiggle.
A toothpick should come out with a few moist crumbs, not wet batter.
Finish and cool: If using, sprinkle with flaky sea salt. Cool in the pan for at least 30 minutes before lifting out and slicing into 9–16 squares.