For QuickBooks Online Core, Premium, Elite, Full Service, or Assisted Payroll, regardless of the current employee status, Intuit will generate and send their W-2 as long as they have paychecks recorded during the year. Before doing so, make sure the following information is correct:
Names, address, and social security numbers.
Retirement plan eligibility.
Then, in case you want to generate their forms, you can follow these steps:
From the Taxes tab, select Payroll Tax.
Under Forms, click the Annual Forms link.
Scroll down at the bottom and select W-2, Copies B, C & 2.
Choose the Report period and then press the View button.
You can check out these articles for more details: