There are a few things you can do to get soft, chewy and delicious cookies, but the most important thing is not to overbake them. You want to remove the cookies from the oven as soon as they start to brown around the edges and the tops seem cracked. They can seem soft and molten at this point, but they will harden as they cool. Choosing a recipe with more brown than white sugar and storing the baked cookies in an airtight tin will also help you get that perfectly soft and chewy texture.