A few thousand years after each impact, the Earth would have cooled down enough for water to condense into oceans.