An electric vehicle battery company will permanently close two of its Michigan plants in April, laying off 188 workers.