This depends, because the best tubeless sealant comes in various forms. Some are designed to seal very quickly at high pressures, but these will usually dry out more quickly in the tyre.
Others prioritise longevity, meaning they can last for six months and more before drying out inside the tyre, but they will usually be a little slower at sealing the puncture, resulting in a probable need to top the air up before continuing your ride.