The key to a perfect chocolate chip cookie texture is taking the cookies out of the oven when they still look slightly underdone. It sounds crazy, but the residual heat from the pan will continue to "cook" the cookies as they cool. This residual heat will leave you with an ultra-soft center (that lasts for days!) and perfectly crisp edges.