MINNEAPOLIS (CBSNewYork/AP) — Former Yankees pitcher Michael Pineda is headed to the Minnesota Twins.

The Twins signed the right-hander recovering from Tommy John surgery to a two-year, $10 million contract Wednesday.

READ MORE: Delta Variant Intensifies Urgency To Get Vaccinated Against COVID-19, Health Experts Say

MORE: Sweeny: Scary Thought — Yankees Are Still Loaded With Prospects

The move made during baseball’s winter meetings was more for 2019, when Pineda will earn $8 million. He’ll get $2 million for the 2018 season, which he’ll likely miss while continuing the rehab following elbow ligament replacement.

READ MORE: 'The Late Show With Stephen Colbert' Returns In Front Of A Live Audience Monday Night

Yankees starter Michael Pineda pitches against the Texas Rangers during the first inning at Yankee Stadium on June 25, 2017. (Photo by Adam Hunger/Getty Images)

Pineda’s procedure was performed July 18. The typical timetable for Tommy John patients to return to the mound is between 12 and 18 months.

Once among the promising prospects, the 28-year-old Pineda went 8-4 with a 4.39 ERA in 17 starts for the Yankees last season.

Acquired in a January 2012 trade with Seattle, Pineda was 31-31 with a 4.16 ERA in his four seasons with New York.

MORE NEWS: See It: NYPD Says Teenager Targeted For His Shoes By 2 Suspects Inside Bronx Bodega

(© Copyright 2017 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)