Проблему решил так
let index = 0;
let count_checked = 0;
setInterval(function() {
if (index === unchecked_accounts.length){
window.location.reload();
}
$.ajax({
url: 'plugins/seller_controller.php',
type: 'POST',
async: false,
data: {api: 'check_account', auth: auth, id: unchecked_accounts[index++]},
success: function (data) {
let result_json = JSON.parse(data);
++count_checked;
$('#progress-bar').css('width', count_checked / accountCount * 100 + '%');
$('#account-login').html(result_json['login']);
},
});
}, 500);