Push the sides of the cookie very lightly with a spatula or butter knife. If the edge stays firm and doesn't fall inwards, then your cookies are done. If you leave a noticeable indentation, then your cookies need a few more minutes to cook.