know-it-all

noun: One who acts as if they know everything, dismissing others’ ideas or advice.