The extendedExpiration query parameter cannot be added via js-sdk, only by a post method.
await client.files.getDownloadUrls([{id: 123}, {externalId: 'abc'}]);

It would be a nice-to-have feature to have to change the expiration time of the download url.