function onOpen() {
  let ui = SpreadsheetApp.getUi();
  ui.createMenu('News Headlines Sentiments')
    .addItem('Analyze News Headlines...', 'showNewsPrompt')
    .addToUi();
}
Creates menu in the Google Sheets spreadsheet when the spreadsheet is opened.