Jmo, if it were mine, I'd replace it cuz of all the things you can't see.
If absolutely nec. You could clean all those contacts for temporary use.
If nec, after cleaning, hook it up under dash, hold it in your hand, turn everything on, hi-beam too, for a few mins, - feel for heat.
The rheostat...