javascript – setTimeout() doesn’t seem to be working, js jquery

Hello I’m working on a faculty excercise, the setTimeout function doesn’t seem to be working.

let poster = document.getElementById("poster");
let title = document.getElementById("title");
let releasedRating = document.getElementById("releasedRating");
let runtimeGenre = document.getElementById("runtimeGenre");
let director = document.getElementById("director");
let actors = document.getElementById("actors");
let plot = document.getElementById("plot");
let loadingScreen = document.getElementById("loadingScreen");
let movieDetailsScreen = document.getElementById("movieGeneratedDetails");

function generateDetails() {
  let movieID = localStorage.getItem("movieid");
  getMovieDetails(movieID);
  loadingScreen.style.display = "none";
  movieDetailsScreen.style.visibility = "visible";
  localStorage.removeItem("movieid");
}

function getMovieDetails(movieID) {
  $.getJSON(
    "https://www.omdbapi.com/?",
    { apikey: "af2beff5", i: movieID },
    (movieData) => {
      if (movieData.Response != "True") {
        console.error(movieData.Error);
        return;
      }
      $(poster).attr("src", movieData.Poster);
      $(title).html(movieData.Title);
      $(releasedRating).html(movieData.Year + " | " + movieData.imdbRating);
      $(runtimeGenre).html(movieData.Runtime + " | " + movieData.Genre);
      $(director).html(movieData.Director);
      $(actors).html(movieData.Actors);
      $(plot).html(movieData.Plot);
    }
  );
}

setTimeout(generateDetails(), 3000);

Besides the delay the other parts work as intended.
I’d really appreciate ur help.