async function copyItem (client, type, itemName) {
  await client.rightClick(`.session-current .file-list.${type} .sftp-item[title="${itemName}"]`, 10, 10)
  await delay(1000) // Increased delay for context menu
  await client.click('.ant-dropdown:not(.ant-dropdown-hidden) .ant-dropdown-menu-item:has-text("Copy")')
  await delay(1500) // Ensure copy operation registers
}
Copies an item using the context menu

@param {Object} client - The Playwright client
@param {string} type - The type of file list ('local' or 'remote')
@param {string} itemName - The name of the item to copy