How to format: (Author, Year 1, Year 2) and (Author, Year1ab)

Hi, how can I format citations for an Author or same set of Authors with multiple papers so that the Author or Authors names are not constantly repeated?

I want to do:

Author (Year 1, Year 2)

Author (Year1ab)

(Author, Year 1, Year 2)

(Author, Year1ab)

Instead I get:

Author (Year 1); Author (Year 2)

Author (Year1); Author (Year 1)

(Author, Year1; Author, Year 2)

(Author, Year1; Author, Year 1)