Imagine apartments built into what used to be department stores, (Oh, you’re JC Penny 203? I’m at Sears 106). Get those old arcades up and running. Set up meal stations at the food court. Once people actually live there, stores will start to move back in.
If I’m unable to finish my life in my own home, that doesn’t sound like a terrible option.
If they come back, I hope they will be more accessible on foot, with a bike, or with efficient public transit. Because if they are still surrounded by deserts of parking lots, only filled with EVs instead of ICEs, they can continue to die.
If parts of it become residential like OP suggested, then it’ll be accessible by foot.
It’s already a problem if they are not in the city center, as it sucks out business from the center and creates more traffic.
In my country (and I think most of Europe) malls (especially those in more central areas) have underground parking, or limited above-ground parking. There is a really nice one which is connected to a big park in the back. So maybe you can replace the parking lots with apartment buildings, recreational spaces and transit infrastructure and maybe include some underground parking.