If you determine you want or need to prorate contributions, you will need to take the annual contribution limit and prorate it for the number of months you were HSA eligible.
Annual Contribution Limit ÷ 12 months × number of eligible months = Prorated Contribution