This is working fine
frappe.listview_settings['ASYCUDA Verification'] = {
refresh: function(listview) {
download_imports(listview);
listview.page.add_inner_button(__("Download Imports"), function() {
download_imports(listview);
});
// Add the btn-primary class to the button
listview.page.inner_toolbar.find('button:contains("Download Imports")')
.addClass('btn-primary');
},
};