Heat the oven to 350°F and line the pan with parchment paper.
The paper should hang over the sides so the bars are easy to lift out later.
Melt the butter and mix it with the sugar in a bowl.
Stir until it looks smooth and glossy.
Add the eggs and peanut butter.
Mix until the batter looks thick and evenly colored.
Stir in the flour and salt.
Stop as soon as no dry flour is visible. The batter will be thick.
Fold in the chocolate chips and peanut butter chips, if using.
The chips should be spread evenly through the batter.
Spread the batter into the pan.
Smooth the top and sprinkle a few extra chocolate chips on top.
Add peanut butter on top if you want a swirl.
Drop small spoonfuls on the surface and lightly swirl or leave them as soft puddles.
Bake for 30–35 minutes.
The top should look golden, the edges set, and the center still a little soft.
Cool completely before cutting.
The bars will firm up as they cool and slice more cleanly.