Writes transaction data to a specified Google Sheet. This function performs the following operations:
Array of transaction rows to write to the sheet.
Name of the target Google Sheet (e.g., "expenses", "incomes").
Google Spreadsheet ID where the sheet is located.
Promise Resolves when data is successfully written.
Error If configuration is invalid, sheet clearing fails, or writing data fails.
Writes transaction data to a specified Google Sheet. This function performs the following operations: