You're overbaking the cookie. Bake until the edges are set but the centers are still soft. Baking too long causes a lot of moisture to be lost. Make sure to use a higher brown sugar ratio than granulated sugar. This acts as a humectant, attracting moisture during storage.