Amortized Simulation-Based Frequentist Inference for Tractable and Intractable Likelihoods