People infected with the virus that causes COVID-19 remain contagious for up to nine days after initially testing positive, a study published Thursday found. Spread also appears to differ significantly between variants.