Rental Roof Replacement

I replaced the roof on my rental property Fall, 2023.  I know that the cost is supposed to be amortized over a number of years however, I am selling the property this year, 2024.  How do I get the full write off of the roof since I will not have it to deduct in the years ahead?  Can I include it in the Repairs cost?