WASHINGTON — Nationals catcher Wilson Ramos had surgery on his right knee and his rehabilitation is expected to take six-to- eight months.

Washington says Ramos had the operation on Friday, hours after the team’s season ended with a 4-3 loss to the Los Angeles Dodgers in Game 5 of their NL Division Series.

Ramos was injured last month, during the last week of the regular season. During Friday’s surgery, he had his knee’s ACL reconstructed and the medial meniscus and lateral meniscus repaired.

He batted .307 with 22 homers and 80 RBIs this season, a career year right before he can become a free agent.