You may use
export type Opts = { path: string | Array } | { paths: string | Array }
To increase readability you may write:
type StringOrArray = string | Array;
type PathOpts = { path : StringOrArray };
type PathsOpts = { paths: StringOrArray };
export type Opts = PathOpts | PathsOpts;