Turning 65 makes your HSA more flexible.
You can keep using the account tax-free for medical costs, including Medicare premiums, deductibles, copays and coinsurance, and your share of retiree health premiums (but not Medigap premiums).
You can also withdraw for any other purpose and pay only income tax, with no penalty. Before 65, non-medical withdrawals carry a 20% penalty on top of income tax.
Keep in mind that once you enroll in any part of Medicare, you can no longer contribute to the HSA. You can still spend the money already in the account.