This cohort study estimates the risk of new-onset type 2 diabetes after Delta or Omicron variant SARS-CoV-2 infection among vaccinated adults in Singapore.