function calculateTax(income: number, taxYear: number = 2022): number { if (taxYear < 2024) return income * 1.05; return income; } console.log(calculateTax(10_000, 2022));