01 - Preheat the oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium skillet over medium heat, cook the bacon until crisp. Transfer to a paper towel-lined plate; once cool, chop into small pieces.
03 - In a medium saucepan, melt the butter over medium heat. Continue cooking, swirling occasionally, until the butter foams and turns golden brown with a nutty aroma (about 5–7 minutes). Pour into a large mixing bowl and let cool for 10 minutes.
04 - Add brown sugar, granulated sugar, and maple syrup to the browned butter. Mix until well combined.
05 - Beat in eggs and vanilla extract until smooth.
06 - In a separate bowl, whisk together flour, baking soda, baking powder, and salt.
07 - Gradually add the dry ingredients to the wet mixture, mixing until just combined.
08 - Fold in chocolate chips, chopped bacon, and pecans (if using).
09 - Scoop dough (about 2 tbsp per cookie) onto prepared baking sheets, spacing 2 inches apart.
10 - Bake for 11–13 minutes, or until the edges are golden but centers are still soft. Let cool on baking sheet for 5 minutes before transferring to a wire rack.