googleSheets.duplicateSheet copies one tab within the same spreadsheet.
Example
Inputs
Providespreadsheet and a sheet title or numeric ID in sheet. newTitle and zero-based insertion index are optional. Second argument { account } selects the Google Account.
Output
Returns the new sheet’s metadata. The copy includes cell values and formatting. Google rejects a duplicatenewTitle.