Ketchup can sit out all night.
Ketchup does not need refrigeration and you can leave Ketchup out at room temperature until you use it all up.
Whether opened or unopened the bottles of Ketchup can sit out all night and for months before it goes bad.
I never refrigerate any Ketchup I have and some bottles of Ketchup I've kept out at room temperature for 6 months before I used it all.
You can refrigerate the Ketchup but there's no need to refrigerate the Ketchup as there's nothing in the Ketchup that will spoil and make you sick.
Ketchup and even Mustard can be left out at room temperature without requiring refrigeration.
Only refrigerate the Ketchup and Mustard if you want too but there's no requirement to do so.
Ketchup actually lasts longer when left out at room temperature.