Keep track of the time that the turrets have been fired by getting the time (tick(), time() or os.time()), then check the elapsed time (now - timestamp) since that occured, along with any other conditions needed for them.
For this type of method, probably if you plan to check every frame until they are ready to fire again, but would most likely depend on how you would want to handle them in the first place.