To obtain this texture, respect the cooking and cooling time. The cookies will continue to bake and harden as they cool, so don't take them out of the oven too soon. Do this as soon as they start to brown around the edges but still seem a bit soft in the middle.