01 - Preheat the oven to 350°F. Line two baking sheets with parchment paper and set aside.
02 - In a medium bowl, whisk together the flour, baking soda, baking powder, and salt until well blended. Set aside.
03 - In a large bowl, beat the softened butter, white miso paste, brown sugar, and granulated sugar together until creamy and smooth, approximately 2-3 minutes.
04 - Add the eggs one at a time, beating thoroughly after each addition. Mix in the vanilla extract until fully incorporated.
05 - Gradually add the dry ingredient mixture to the wet mixture, mixing just until combined and no dry streaks remain. Avoid overmixing.
06 - Gently fold in the chocolate chips or chopped chocolate until evenly distributed throughout the dough.
07 - Scoop approximately 2 tablespoons of dough per cookie onto the prepared baking sheets, spacing cookies about 2 inches apart to allow for spreading.
08 - Sprinkle the tops of each cookie with flaky sea salt if desired for a sweet-salty finish.
09 - Bake for 11-13 minutes until the edges are golden brown and the centers appear slightly soft and underbaked.
10 - Let cookies rest on the baking sheet for 5 minutes to set, then transfer to a wire rack to cool completely before serving.