It depends on how much you've damaged it. I'm pretty sensitive about my knees after blowing an ACL, so I tend to be rather paranoid about them when I do injure them.
If it's swollen, keep icing it — and wrap it moderately tightly with an Ace bandage if you're doing anything involving exertion. The ice helps to reduce inflammation and swelling, and the Ace bandage will help prevent further injury (though IMO this is every bit as much mental as it is physical, the Ace bandage does help to stabilize the joint and reduce shock, so it isn't purely a placebo).
And if you're as paranoid about your knees as I am, strengthen them. You can't strengthen the joint itself, but you CAN strengthen the muscles around it — calves, hamstrings, and quads — focus especially on the low part of the quad, just above the knee, since that's actually surprisingly hard to target with most exercises, and when I was in physical therapy we focused specifically on that part because of how much stability it gives.
I don't hike with a knee brace, but when my knees get sore, I definitely use a trekking pole (preferably a pair).