A 64-year-old man with long-standing osteoarthritis of the knees has been taking regular NSAIDs for pain relief. He presents with worsening knee pain affecting function. X-rays show moderate joint space narrowing and osteophytes. According to osteoarthritis management guidelines, which intervention has the strongest evidence for improving pain and function?