This kind of cookie doesn't need a lot of cooling time, just made some recently. A few minutes are enough to pour the jam and stick them together. You have to be more careful if they're still a bit warm, but spreading the jam does work better if they're still a bit warm.