Awaiting knee surgery

I am 77 years and two years ago I was extremely fit no medication now awaiting surgery on both knees. Arthritis now in other joints I can cope in the day but pain at night now becoming intolerable. Any advice?