Preheat the oven to 350°F and line 2 baking sheets with parchment paper.
In a large mixing bowl, beat the softened butter, peanut butter, brown sugar, and granulated sugar until the mixture looks creamy and well combined, about 2 to 3 minutes.
Add the egg and vanilla extract to the bowl and mix until fully incorporated, scraping down the sides as needed.
In a separate bowl, whisk together the flour, baking soda, baking powder, fine sea salt, and chili powder until evenly combined.
Add the dry ingredients to the wet ingredients and mix on low speed or stir gently just until no dry streaks remain.
Fold in the chopped dark chocolate, making sure the chunks are distributed evenly through the dough.
Chill the dough for 10 minutes so it firms slightly and is easier to scoop.
Portion the dough into 18 equal mounds, about 2 tablespoons each, and place them on the prepared baking sheets with space between each cookie.
Bake one sheet at a time for 10 to 12 minutes, until the edges are lightly golden and the centers still look a little soft.
Remove the cookies from the oven and immediately sprinkle the tops with flaky sea salt.
Let the cookies cool on the baking sheet for 5 minutes, then transfer them to a wire rack to cool further before serving.