Preheat oven to 350°F (175°C)
Cream butter, brown sugar, and granulated sugar until light and fluffy
Beat in eggs one at a time
Mix in vanilla extract
In a separate bowl, whisk flour, baking soda, baking powder, and salt
Gradually add dry ingredients to wet ingredients
Stir in oats until evenly combined
Gently fold in caramel bits or chopped caramels
Cover dough and chill for 30–60 minutes
Line baking sheets with parchment paper
Scoop dough into evenly sized portions and place 2–3 inches apart
Bake for 10–12 minutes until edges are set and centers are soft
Remove from oven and sprinkle lightly with flaky sea salt
Cool on baking sheet for 5 minutes, then transfer to a wire rack