async function postToSlack(title, details) {
  const response = await fetch(process.env.SLACK_WEBHOOK_URL, {
    method: "post",
    body: JSON.stringify({
      blocks: [
        {
          type: "section",
          text: {
            type: "mrkdwn",
            text: title,
          },
        },
        {
          type: "divider",
        },
        {
          type: "section",
          text: {
            type: "mrkdwn",
            text: details,
          },
        },
      ],
    }),
    headers: {"Content-Type": "application/json"},
  });
  return response.json();
}
Posts a message to Slack via a Webhook
@param {string} title
@param {string} details
@return {Promise<string>}