Preheat the oven to 350 degrees F. Line a 9x13-inch baking dish with foil and liberally coat with nonstick cooking spray.
In the bowl of an electric mixer, beat the softened butter with both sugars until light and fluffy, about 2 minutes. Add the eggs, vanilla, salt, and baking soda. Mix well, then scrape the sides of the bowl with a spatula.
Turn the speed to low and add the flour. Beat to combine, then mix in the chocolate chips.
Press half of the cookie dough into the bottom of the prepared baking dish.
In a medium sauce pot, add the sweetened condensed milk and unwrapped caramels. Set over medium-low heat and stir until the caramels melt, making a smooth caramel filling. Pour the filling over the cookie dough base.
Drop the remaining cookie dough over the caramel filling in small teaspoons-sized clumps. Bake the bars for 25-30 minutes, until the center is just set.
Sprinkle with sea salt flakes and allow the bars to cool completely. Then lift the bars out of the pan by the edges of the foil and cut. Store in an airtight container at room temperature for up to 3 days.
These bars freeze really well! We pulled 2-4 bars out of the freezer at a time and enjoyed them over the course of a month. Once thawed they taste just as good as freshly-baked.
Keyword bar, chip, chocolate, chocolate chip, chocolate chip cookie bars, cookie, cookie bar, cookie bars, cookies