Go to this IRS website for information - https://www.irs.gov/newsroom/how-to-file-a-final-tax-return-for-someone-who-has-passed-away
Per IRS:
You'll file a normal federal and state tax return for the deceased person based on their income and deductions until the date of their death.
In the personal Info section:
If the tax return for the decedent has a refund, you’ll need to complete Form 1310 - Statement of Person Claiming a Refund Due a Deceased Taxpayer. It can be completed in TurboTax.