As long as you're running payroll in QuickBooks Online, you can run the Annual Payroll Summary (P11) report on the Reports page. Then, make sure to filter the date range to the year you need.
Here's how:
In the left menu, click Reports.
Type in P11 on the search bar.
Select Annual Payroll Summary (P11).
Set the date range.
Here are some great resources that you can use for guidance in personalising and exporting your reports: