Keeping the card credit lines open would be better than closing the accounts. Also paying ON TIME and lowering your utilization of credit to 25% or below on a consistent basis will help improve your scores.
Search for threads about closing credit card accounts and utilization of available credit, you will learn much about using the accounts you have to your benefit !!

Welcome to the forums.