In most cases, the right strategy is to take the profits out of the company and pay Income Taxes on them.
Illustrative simplified case
Year end 31 December 2022
So the director can live comfortably on the €150k salary he has taken out of the company. The question is what to do with the €100k profit?
The most tax-efficient way of dealing with this is to contribute to a pension scheme. That eliminates the profit and he pays no income tax either.
Deadlines
If he is making a pension contribution, he must make it before the year-end, i.e. the 31 December 2022. He can't accrue a pension contribution and pay it in 2023.
Most people won't know what their profits are at the year-end, and will have to wait until the accountant prepares the accounts. In the above case, if there is a draft profit, the company can accrue director's salary of €100,000 and eliminate the profit for Corporation Tax purposes.
However, the accrued salary should/must be paid within 6 months of the year-end i.e. by 30th June. Otherwise the salary will be deemed to have been paid in December 2022 and interest will be charged on the underpaid PAYE and PRSI.
So make sure your accountant prepares the accounts within a few months of the year-end so that you have time to plan the best way of dealing with profits.